#ifndef CPPPERSON_H
#define CPPPERSON_H

#include <QObject>

class CppPerson : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
    Q_PROPERTY(int shoeSize READ shoeSize WRITE setShoeSize NOTIFY shoeSizeChanged)

public:
    explicit CppPerson(QObject *parent = nullptr);

    QString name() const;
    void setName(const QString& name);
    int shoeSize() const;
    void setShoeSize(int size);

private:
    QString m_name;
    int m_shoeSize;

signals:
    void nameChanged();
    void shoeSizeChanged();
};

#endif // CPPPERSON_H
